
<div class="pageContent">


    <form method="post" action="__URL__/insert/navTabId/__MODULE__?callbackType=closeCurrent" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
        <input type="hidden" name="replyid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/>
        <input type="hidden" name="questionid" value={$vo.id}>
        <input type="hidden" name="replyname" value={$Think.session.loginUserName}>
        <input type="hidden" name="replyrole" value={$Think.session.role_id}>
        <div class="pageFormContent" layoutH="60">
            <fieldset>
                <legend>[{$city_list[$vo['postcity']]}:{$vo.id}][{$vo.number}]{$status_list[$vo['status']]}</legend>
                <dl>
                    <dt>国内小包单号：{$numbercount}条</dt>
                    <dd><font color="red"><label>{$vo.number}</label></font></dd>
                </dl>
                <dl>
                    <dt>商品种类：</dt>
                    <dd><label>{$vo.type}</label></dd>
                </dl>
                <dl>
                    <dt>发单人：</dt>
                    <dd><label>{$vo.postname}</label></dd>
                </dl>
                <dl>
                    <dt>原因：(原：{$reason_list[$vo['reason']]})</dt>
                    <dd><SELECT name="reason">
                        <volist name="reason_list" id="list">
                            <if condition="$key eq $vo['reason']"><option value="{$key}" selected>
                                <else/>
                            <option value="{$key}" ></if>{$list}</option>
                        </volist>
                    </SELECT></dd>
                </dl>

                <dl>
                    <dt>发单人单位：</dt>
                    <dd><label>{$vo.postunitname}</label></dd>
                </dl>
                <dl>
                    <dt>邮寄客户名称：</dt>
                    <if condition="$vo['postrole'] Gt 1">
                        <dd><font color="#8a2be2"><label>{$vo.postclientname}</label></font></dd>
                        <else/><dd><font color="#8a2be2"><label>{$vo.postunitname}</label></font></dd>
                    </if>
                </dl>
                <dl>
                    <dt>工单状态：</dt>
                    <dd><strong><font color="red"><label>{$status_list[$vo['status']]}</label></font></strong></dd>
                </dl>
                <dl>
                    <dt>与我联系电话：</dt>
                    <dd><label>{$vo.tel}</label></dd>
                </dl>
                <dl>
                    <dt>与我联系QQ号：</dt>
                    <dd><label>{$vo.qqnum}<a href="http://wpa.qq.com/msgrd?v=3&uin={$vo.qqnum}&site=qq&menu=yes" target="_blank">[点击联系]</a></label></dd>
                </dl>
                <dl>
                    <dt>发单日期：</dt>
                    <dd><label>{$vo.create_time|date="Y-m-d H:i",###}</label></dd>
                </dl>
                <dl>
                    <dt>图片链接：</dt>
                    <if condition="$vo['pic'] neq ''">
                        <dd><a href="__PUBLIC__/questionupload/{$vo.pic}" target="_blank" rel="单号：{$vo['number']}"><font color="blue">点击查看</font></a></dd>
                        <else/>
                    </if>
                </dl>
                <dl class="nowrap">
                    <dt>收件人信息：</dt>
                    <dd><textarea readonly="true" cols="100" rows="4">{$vo.address}</textarea></dd>
                </dl>
                <dl class="nowrap">
                    <dt>备注（纠错）：</dt>
                    <dd><textarea readonly="true" cols="100" rows="2">{$vo.remark}</textarea></dd>
                </dl>
            </fieldset>


            <fieldset>
                <legend>[{$Think.session.loginUserName}]回复[{$vo.postname}]关于单号[{$vo.number}]
                </legend>
                <table class="list" width="800" border="1">
                    <thead>
                    <tr>
                        <th width="20"></th>
                        <th width="500">处理情况</th>
                        <th width="80">处理人</th>
                        <th width="100">时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist id="po" name="polist">
                        <tr target="sid_node" rel="{$po['id']}">
                            <td>{$key+1}</td>
                            <td>{$po['reply']}</td>
                            <td>{$po['replyname']}</td>
                            <td>{$po['reply_time']|date="Y-m-d H:i",###}</td>
                        </tr>
                    </volist>
                    </tbody>

                </table>

                <dl class="nowrap">
                    <if condition="$vo['status'] lt 2">
                    <dt><font color="red">必填：</font><br>不超过200字</dt>
                    <dd><textarea name="reply" class="required" cols="100" rows="3"></textarea></dd>
                        <else/>
                    </if>
                </dl>
                <if condition="$Think.session.role_id eq 2">
                <dl class="nowrap">
                    <dt><font color="blue"><label><input type="checkbox" name="zhuangei" value="1" />我难以处理,需转给</label></font></dt>
                    <SELECT name="zhuanuser">
                        <volist name="userlist" id="userlist">
                            <option value="{$userlist["id"]}" >{$userlist["nickname"]}</option>
                        </volist>
                    </SELECT>
                </dl>
                    <else/>
                </if>
                <dl class="nowrap">
                    <dt>备注（纠错）：</dt>
                    <dd><textarea name="replyremark" cols="100" rows="2">{$vo.replyremark}</textarea></dd>
                </dl>


            </fieldset>


        </div>
        <div class="formBar">
            <ul>
                <if condition="$vo['status'] lt 2">
                <li><font color="blue"><strong align="center">工单状态处理</strong></font></li>
                <li>
                    <SELECT name="status">
                        <volist name="status_process" id="status_process_list">
                            <if condition="$key eq $vo['status']"><option value="{$key}" selected>
                                <else/>
                                <option value="{$key}" ></if>{$status_process_list}</option>
                        </volist>
                    </SELECT>
                </li>
                <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交处理</button></div></div></li>
                    <else/>
                    <li>
                        <input type="hidden" name="status" value=2>
                    </li>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">修改备注</button></div></div></li>
                </if>
                <li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
            </ul>
        </div>
    </form>

</div>

